<template>
	<view class="container_dialog">
		<view class="dialog">
			<view class="content">{{ statusContent }}</view>
			<view class="btn">
				<text class="confirmText" @click="confirm">确 定</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			statusContent: {
				type: String,
				default: ''
			},
		},
		methods: {
			confirm() {
				this.$emit('shutDown')
			},
		},
	}
</script>

<style lang="scss" scoped>
	.container_dialog {
		width: 100vw;
		height: 100vh;
		position: fixed;
		top: 0;
		left: 0;
		z-index: 9998;
		background: rgba($color: #000000, $alpha: 0.2);

		.dialog {
			overflow: hidden;
			width: 615rpx;
			height: 213rpx;
			background: #FFFFFF;
			border-radius: 11rpx;
			/* padding: 41rpx 0; */
			margin: 60% auto 0;


			.content {
				margin-top: 41rpx;
				font-size: 33rpx;
				color: #000000;
				padding-bottom: 40rpx;
				text-align: center;
				line-height: 1;
			}

			.btn {
				text-align: center;

				text {
					display: inline-block;
					width: 236rpx;
					height: 58rpx;
					line-height: 58rpx;
					background: #2871FC;
					border-radius: 29rpx;
					text-align: center;
					font-size: 29rpx;
				}

				.confirmText {
					color: #fff;
					background: #2871fc;
				}
			}
		}
	}
</style>